/* 
 * File:   Vector2D.h
 * Author: max
 *
 * Created on November 2, 2012, 5:42 PM
 */

#ifndef VECTOR2D_H
#define	VECTOR2D_H

#include <string>
#include "../XML/tinyxml.h"

using namespace std;

namespace TP { namespace Matematica {

class Vector2D {
public:
    Vector2D();
    
    Vector2D(long int pX, long int pY);

    virtual ~Vector2D();
    
    long int X();
    
    long int X(long int pX);
    
    long int Y();
    
    long int Y(long int pY);
    
    virtual string aXML();
    
    virtual string aXML(const string& pPath);
    
    virtual void parseXML (const string& pDescriptor);
    
    virtual TiXmlElement* aElementoXML ();
    
    virtual void deElementoXML (TiXmlElement* pElemento);


private:
    long int _x
           , _y;
};

}}

#endif	/* VECTOR2D_H */

